# Maintainer: Antoni Aloy <aaloytorrens@gmail.com>
pkgname=noblenote
pkgver=1.2.1
pkgrel=1
pkgdesc="Program to make and manage notes"
url="https://github.com/hakaishi/nobleNote"
arch="all"
license="MIT"
makedepends="qt5-qtbase-dev qt5-qttools-dev coreutils"
source="https://github.com/hakaishi/nobleNote/archive/v$pkgver/nobleNote-$pkgver.tar.gz"
options="!check" # No test suite
builddir="$srcdir/nobleNote-$pkgver"

prepare() {
	default_prepare
	sed -i 's|Icon=noblenote|Icon=/usr/share/pixmaps/noblenote-icons/noblenote|' noblenote.desktop
}

build() {
	qmake-qt5 PREFIX=/usr
}

package() {
	make INSTALL_ROOT="$pkgdir" install
	install -Dm644 noblenote.desktop \
		"$pkgdir"/usr/share/applications/noblenote.desktop
}

sha512sums="3c218931f6bff313dbeeec15ad486feef6bb5a467a308a6e2eec10b6ccdc9bd60bf58f1ebebc0e69c634e62b08ea9b9f5440bd1830f9d25d0cd7dd7fa18af122  nobleNote-1.2.1.tar.gz"
